\documentclass[10pt,a5paper,oneside]{book} %12pt before was slighlty big
\usepackage[left=1.5cm,top=1.5cm,right=1.2cm,bottom=1.3cm,nofoot,portrait]{geometry}

\usepackage[russian, spanish]{babel}



%\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
%\setromanfont{Linux Libertine O}
%\setromanfont{Linux Biolinum O}
%\setsansfont{Linux Biolinum O}
%\setmonofont[Scale=0.9]{Courier New}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xunicode,fontspec,xltxtra}
\usepackage[russian,spanish,english]{polyglossia}

\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont{Liberation Serif}

\setotherlanguages{russian} % set as "other" so hyphenation active


\include{commands_xetex}
\maxdeadcycles=500   % increases tolerance from error "Output loop---100 consecutive dead cycles."


\pretolerance=500  % helps with line breaks
\setlength{\emergencystretch}{3em} % also helps with line breaks

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{chekhov}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

